package com.yanqu.road.server.manager.tomb.entity;

import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion;
import com.yanqu.road.pb.tomb.Tomb;

public class UserAbilityInfo {

    public static UserAbilityInfo newInstance(Tomb.UserAbilityTemp temp) {
        UserAbilityInfo userAbilityInfo = new UserAbilityInfo();
        userAbilityInfo.setUserId(temp.getUserId());
        userAbilityInfo.setServerId(temp.getServerId());
        userAbilityInfo.setAbility(temp.getAbility());
        return userAbilityInfo;
    }
    private long userId = 1;
    private long serverId = 2;
    private long ability = 3;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public long getAbility() {
        return ability;
    }

    public void setAbility(long ability) {
        this.ability = ability;
    }
}
